const userModel = (params = {}) => {
  const { userName, mobile, idStr } = params;
  return {
    tableName: "ev_users",
    listCondition: `id != 1 and userName like '%${
      userName || ""
    }%' and mobile like '%${mobile || ""}%'`,
    addUser: `insert into ev_users set ?`,
    editUser: `update ev_users set ? where id=?`,
    checkUser: `select * from ev_users where account = ?`,
    getUserSelect: `select * from ev_users`,
    deleteUser: `delete from ev_users where id=?`,
    bindMenu: "update ev_users set menu_ids=? where id=?",
    userInfo: "select * from ev_users where id=?",
  };
};
module.exports = userModel;
